package com.qujia.markert.controller;

import com.qujia.common.core.domain.AjaxResult;
import com.qujia.coupon.service.ICouponUserService;
import com.qujia.markert.domain.dto.CouponReductionDto;
import com.qujia.markert.domain.vo.CouponUserDto;
import com.qujia.markert.domain.vo.CouponUserVo;
import com.qujia.markert.domain.vo.DiscountVo;
import com.qujia.markert.domain.vo.ReductionDisVo;
import com.qujia.markert.service.ActivitySyncService;
import com.qujia.markert.service.IMarketCouponService;
import com.qujia.markert.service.IReductionActivityService;
import com.qujia.station.service.IStationService;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.validation.Valid;
import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;

@RestController
@RequestMapping("/syncActivity")
public class ActivitySyncController {

    @Resource
    private ICouponUserService couponUserService;





    @Resource
    private ActivitySyncService activitySyncService;


    @PostMapping("/getReduction/{timestamp}/{sign}")
    public AjaxResult selectReduction(@RequestBody @Valid CouponReductionDto couponReductionDto){

        return activitySyncService.selectDiscount(couponReductionDto);








    }

}
